package yl.hs.bmipfull.viewmodels.WeightApp;

/*
 * WeightResult
 * @category
 * @author 谢景广
 * @date 2022-04-12
 */
public class WeightResult<T> {
    private boolean State;
    private String Message;
    private T Data;

    public WeightResult(boolean state, String message,T data){
        this.Data = data;
        this.Message = message;
        this.State = state;
    }
    public WeightResult(boolean state, String message){
        this.Data = null;
        this.Message = message;
        this.State = state;
    }

    public WeightResult() {

    }


    public boolean isState() {
        return State;
    }

    public void setState(boolean state) {
        State = state;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        Data = data;
    }
}
